package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 审核管理员对象 t_admin
 * 
 * @author ruoyi
 * @date 2025-07-24
 */
public class Admin extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 管理员编号 */
    private Long id;

    /** 管理员用户名 */
    @Excel(name = "管理员用户名")
    private String username;

    /** 管理员密码 */
    @Excel(name = "管理员密码")
    private String password;

    /** 管理员姓名 */
    @Excel(name = "管理员姓名")
    private String name;

    /** 管理员电话 */
    @Excel(name = "管理员电话")
    private String phone;

    /** 管理员角色 */
    @Excel(name = "管理员角色")
    private String role;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }

    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }

    public void setRole(String role) 
    {
        this.role = role;
    }

    public String getRole() 
    {
        return role;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("username", getUsername())
            .append("password", getPassword())
            .append("name", getName())
            .append("phone", getPhone())
            .append("role", getRole())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
